DynamicClass = type('DynamicClass',(),{'spam':'eggs'})

DynamicClass